home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / multitasking / priorities / priman / source / makefile < prev    next >
Makefile  |  2000-03-05  |  1KB  |  38 lines

  1. #
  2. # Makefile for PriMan 1.2
  3. # Loosely based on SnoopDos's makefile - thanks, Eddy!
  4. #
  5.  
  6. # Executable name
  7. NAME    = PriMan
  8.  
  9. # Global Symbol Table
  10. GST     = System.sym
  11.  
  12. # Object files produced by compiler and used by linker
  13. OBJS    = Main.o Event.o Util.o Window.o
  14.  
  15. # Libraries we need to link with
  16. LIBS    = lib:sc.lib
  17.  
  18. # Defines how to get from a source to an object file
  19. .c.o:
  20.         sc noversion nolink gst=$(GST) $*.c
  21.  
  22. # Project will be fully made by typing "smake all" (or just "smake")
  23. all:        $(NAME)
  24.  
  25. # Executable is based on the GST and object files, and is created using slink
  26. $(NAME):    $(GST) $(OBJS)
  27.         slink from lib:c.o $(OBJS) to $(NAME) lib $(LIBS) with lib:utillib.with stripdebug
  28.  
  29. # GST is based on the system header file, and is created using sc
  30. $(GST):        System.h
  31.         sc noversion nolink noobjname makegst=$(GST) System.h
  32.  
  33. # Object files are based on the source and header files, and created as defined above
  34. Main.o:        Main.c        PriMan.h
  35. Event.o:    Event.c        PriMan.h
  36. Util.o:        Util.c        PriMan.h
  37. Window.o:    Window.c    PriMan.h
  38.